Page({
  data: {
    theme: 'light',
    array: ['中国', '美国', '巴西', '日本'],
    index: 0,
    date: '2016-09-01',
    time: '12:01',
    region:['广东省', '广州市', '海珠区'],
    schema: [],
    formData: {
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },

  bindPickerChange(e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      index: e.detail.value
    })
  },

  bindDateChange(e) {
    this.setData({
      date: e.detail.value
    })
  },
  bindRegionChange(e) {
    this.setData({
      region: e.detail.value,
      result: e.detail
    })
  },

  bindTimeChange(e) {
    this.setData({
      time: e.detail.value
    })
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  }
})
